#include "gui_main.h"




uint8_t	key5_to_lvgl_flag =1;

void GUI_init_page_create(void)
{



}




void gui_init(void)
{
	lv_group_t *g = lv_group_create();
	lv_indev_set_group(indev_keypad,g);
	
	lv_obj_t *btn1 = lv_btn_create(lv_scr_act());
	lv_obj_align(btn1, LV_ALIGN_TOP_MID, 0, 20);
	lv_obj_set_height(btn1, 30);

	lv_obj_t *label1;
	label1 = lv_label_create(btn1);
	lv_obj_align(label1, LV_ALIGN_CENTER, 0, 0);
	lv_label_set_text(label1, "8-18");

	static lv_style_t style_btn;
	lv_style_init(&style_btn);
	lv_style_set_radius(&style_btn, 10);
	lv_style_set_border_color(&style_btn, lv_color_white());
	lv_style_set_border_opa(&style_btn, LV_OPA_30);
	lv_obj_add_style(btn1, &style_btn, LV_STATE_DEFAULT);
	
	
	lv_obj_t *btn2 = lv_btn_create(lv_scr_act());
	lv_obj_align(btn2, LV_ALIGN_TOP_MID, 0, 70);
	lv_obj_set_height(btn2, 30);

	lv_obj_t *label2;
	label2 = lv_label_create(btn2);
	lv_obj_align(label2, LV_ALIGN_CENTER, 0, 0);
	lv_label_set_text(label2, "8-18");

	lv_obj_add_style(btn2, &style_btn, LV_STATE_DEFAULT);

	lv_group_add_obj(g,btn1);
	lv_group_add_obj(g,btn2);
	
}











